package com.example.mardan.service;

import com.example.chenzixin.entity.ChengYuBean;
import com.example.chenzixin.entity.ResultBean;
import com.example.mardan.entity.SongciChapter;
import com.example.mardan.entity.SongciDetail;
import com.example.wangxinrong.bean.XiaoHuaBean;

import java.util.List;
import java.util.Map;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

public interface ApiService {
    @GET("songci/chapter")
    Call<SongciChapter> getChapters(@Query("appkey") String appkey);

    @GET("songci/detail")
    Call<SongciDetail> getDetail(@Query("appkey") String appkey, @Query("detailid") int detailid);

    @GET("chengyu/search")
    Call<ResultBean<List<Map<String, String>>>> searchChengyu(@QueryMap Map<String, String> map);

    @GET("chengyu/detail")
    Call<ResultBean<ChengYuBean>> chengyuDetails(@QueryMap Map<String, String> map);

    @GET("xiaohua/text")
    Call<ResultBean<XiaoHuaBean>> getXiaoHua(@QueryMap Map<String, Object> map);

    @GET("xiaohua/pic")
    Call<ResultBean<XiaoHuaBean>> getXiaoHuaPic(@QueryMap Map<String, Object> map);
}